-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support persistent-2.11 #226
Conversation
src/Database/Esqueleto/PostgreSQL.hs
Outdated
queryVals = | ||
addVals updateVals | ||
xs <- rawSql queryText queryVals | ||
pure (head xs) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
connUpsertSql
was changed to take the field names directly. This is the only semantic change in the PR.
handler conn f = fmap head $ uncurry rawSql $ | ||
(***) (f entDef (uDef :| [])) addVals $ updatesText conn | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not a huge fan of CPP but it'd be nice to keep this available to 2.10 for a bit
…p/esqueleto into matt/support-persistent-2.11
Before submitting your PR, check that you've:
@since
declarations to the Haddock.stylish-haskell
and otherwise adhered to the style guide.After submitting your PR:
Pending release of
2.11
on Hackage, of course, but want to ensure that we're tracking changes.